English
Uploads a file to the media library and returns the created media library entry.
cURL
curl --request POST \ --url https://your_a2_service/media_library \ --header 'Content-Type: multipart/form-data' \ --form 'cdn_host=<string>' \ --form file_size=123 \ --form height=123 \ --form 'mime=<string>' \ --form owner_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \ --form 'storage=<string>' \ --form width=123
{ "cdn_path": "<string>", "created_at": "2023-11-07T05:31:56Z", "file_size": 123, "filename": "<string>", "height": 123, "mime": "<string>", "no": 123, "path": "<string>", "storage": "<string>", "updated_at": "2023-11-07T05:31:56Z", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "width": 123 }
Successful Response
Schema for reading media library entity.
Was this page helpful?